package org.gas.barapraja.util;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public abstract class GasAppContext {
	
	private static ApplicationContext context;
	
	static{
		context=new ClassPathXmlApplicationContext("classpath:jpa-context.xml");
	}
	
	public static <T> T springConfiguredBean(Class<T> bean){
		return context.getBean(bean);
	}
	
	/*
	public static AccountDao getAccountDao(){
		return (AccountDao)context.getBean(AccountDao.class);
	}
	
	public static MessageDao getMessageDao(){
		return (MessageDao)context.getBean(MessageDao.class);
	}
	*/
	

}
